#include "CApp.h"

void CApp::OnCleanup()
{
	SDL_FreeSurface(m_SDLDisplay);
	SDL_FreeSurface(m_Yoshi);
	for(unsigned int i = 0;i < CEntity::EntityList.size();i++) 
	{
		if(!CEntity::EntityList[i]) 
		{
			continue;
		}
		CEntity::EntityList[i]->OnCleanup();
	}
 
	CEntity::EntityList.clear();
	SDL_Quit();
}